package com.kingdee.hackson.service.impl;

import com.kingdee.hackson.dao.IBizDataDao;
import com.kingdee.hackson.entity.BizDataEntity;
import com.kingdee.hackson.entity.Position;
import com.kingdee.hackson.service.IBizDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 测试自动生成代码的逻辑Service业务层处理
 *
 * @author songwh
 * @date 2021-12-09
 */
@Service
public class BizDataServiceImpl implements IBizDataService {
    @Autowired
    private IBizDataDao bizDataDao;

    @Override
    public void batchInsert(List<BizDataEntity> datas) {
        bizDataDao.batchInsert(datas);
    }

    @Override
    public List<Position> queryListPageByAuthIds(List<Long> authIds, int startNum, int count) {
        return bizDataDao.queryListPageByAuthIds(authIds, startNum, count);
    }

    @Override
    public List<Position> queryListPageByAuthCode(String authCode, int startNum, int count) {
        return bizDataDao.queryListPageByAuthCode(authCode, startNum, count);
    }

    @Override
    public Long queryListPageCountByAuthIds(List<Long> authIds) {
        return bizDataDao.queryListPageCountByAuthIds(authIds);
    }

    @Override
    public Long queryListPageCountByAuthCode(String authCode) {
        return bizDataDao.queryListPageCountByAuthCode(authCode);
    }

    @Override
    public void truncate() {
        bizDataDao.truncate();
    }

    @Override
    public Long queryListPageCountByStructCode(String structCode) {
        return bizDataDao.queryListPageCountByStructCode(structCode);
    }

    @Override
    public List<Position> queryListPageByStructCode(String structCode, int startNum, int count) {
        return bizDataDao.queryListPageByStructCode(structCode, startNum, count);
    }

    @Override
    public Long queryListPageCountByMergeTable(String authCode) {
        return bizDataDao.queryListPageCountByMergeTable(authCode);
    }

    @Override
    public List<Position> queryListPageByMergeTable(String authCode, int startNum, int count) {
        return bizDataDao.queryListPageByMergeTable(authCode, startNum, count);
    }

    @Override
    public List<Position> queryListPageByMergeTableWithStructNumber(String structNumber, int startNum, int count) {
        return bizDataDao.queryListPageByMergeTableWithStructNumber(structNumber, startNum, count);
    }

    @Override
    public Long queryListPageByMergeTableCountWithStructNumber(String structNumber) {
        return bizDataDao.queryListPageByMergeTableCountWithStructNumber(structNumber);
    }
}
